<?
$dbhost ="localhost";  
$dbname ="test";  
$dbuser ="root";  
$dbpass ="vertrigo";  
$db =mysql_connect("$dbhost","$dbuser","$dbpass") or die("Die connect: ".mysql_error());  
mysql_select_db("$dbname") or die("Die select database: ".mysql_error());  
mysql_query("SET character_set_results=utf8", $db);
mb_language('uni');
mb_internal_encoding('UTF-8');
mysql_query("SET NAMES 'utf8'",$db); 
?>